package com.zxjbyte.yiyi.framework.common.core.okhttp;

import lombok.extern.slf4j.Slf4j;
import okhttp3.logging.HttpLoggingInterceptor;
import org.jetbrains.annotations.NotNull;

/**
 * OkHttp Slf4j logger
 * @Author zhangxingjia
 * @Date 2023/4/24 14:37
 * @Version: 1.0
 */
@Slf4j
public class Slf4jLogger implements HttpLoggingInterceptor.Logger {

    public static final HttpLoggingInterceptor.Logger INSTANCE = new Slf4jLogger();

    @Override
    public void log(@NotNull String message) {
        log.info(message);
    }
}
